<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOrganizationMcstationTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('mckj_organization_mcstation', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('org_uid')->index()->comment('机构所属用户ID');
            $table->integer('org_id')->index()->comment('机构ID');
            $table->integer('mcstation_id')->index()->comment('门店ID');
            $table->integer('cart_id')->index()->comment('洗车仓ID');
            $table->timestamp('created_time')->nullable();
            $table->timestamp('updated_time')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('mckj_organization_mcstation');
    }
}
